package 力扣;

/**
 * @author yyq
 * @create 2022-03-21 10:11
 */
public class leetcode344 {
    public void reverseString(char[] s) {
        int leftPoint=0;
        int rightPoint=s.length-1;
        while(leftPoint<rightPoint){
            char temp=s[leftPoint];
            s[leftPoint]=s[rightPoint];
            s[rightPoint]=temp;
            leftPoint++;
            rightPoint--;
        }
    }
}
